package net.huashitong.ssydt.provider.task.mapper;


import net.huashitong.ssydt.base.dao.LongMapper;
import net.huashitong.ssydt.task.entity.SsTaskCardRecord;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SsTaskCardRecordMapper extends LongMapper<SsTaskCardRecord> {

    int countByYearMonthsWithUserId(SsTaskCardRecord record);

    SsTaskCardRecord getByCardIdWihUserId(SsTaskCardRecord record);

    Integer countByUserIdWithReadState(SsTaskCardRecord record);

    int updateReadStateToRead(String userId);

    List<SsTaskCardRecord> findCardRecordByUserId(String userId);
}